fn main() {
    println!("=====if-else=====");
    let mut y = 1;
    if y == 1 {
        println!("y = 1");
    } else if y == 2 {
        println!("y=2");
    } else {
        println!("y={}", y);
    }

    println!("=====let-if=====");
    let mut condition = true;
    let mut x = if condition {
        5
    } else {
        6
    };
    println!("x={}", x);

    println!("=====loop=====");
    let mut count = 0;
    loop {
        println!("aaa");
        count = count + 1;
        if count == 10 {
            break;
        }
    }
    let mut result = loop {
        count = count + 1;
        if count == 20 {
            break;
        }
    };
    println!("result={}", count);


    println!("=====while=====");
    let mut i =0;
    while i !=10 {
        i = i+1;
    }
    println!("i={}",i);

    println!("=====for=====");
    let mut arr = [1, 2, 3, 4, 5];
    for item in &arr {
        println!("item={}",item);
    }

}
